<?php 
$statuses = App::object('Entity_Status')->getCollection();
$current = $self->getPost()->getStatus();
?>
<select name="status" id="selStatus">
	<option value=""></option>
<?php foreach ($statuses as $status): ?>
	<?php $selected = $current==$status->getId(); ?>
	<option value="<?php echo $status->getId() ?>" <?php if ($selected): ?> selected="selected"<?php endif ?>><?php echo $status->getLabel() ?></option>
<?php endforeach ?>
</select>

<script type="text/javascript">
	$('#selStatus').change(function() {
		updatePostStatus(window.postId, this.value);
	});
</script>